<?php
  require_once('db_connection.php');

  $query = "INSERT INTO `users` VALUES (null,'rasmus','zeev@andi.com','1q1q1q',NOW(),null,'1') ";

  mysql_query($query) or die(mysql_error());

  $id = mysql_insert_id();// return auto_incremented (primary key)

  $rows_inserted = mysql_affected_rows();

  echo "$rows_inserted record inserted on Id : $id \n\n";
